package com.adu.demo.service.Impl;

import java.util.List;
import com.adu.demo.domain.Tag;
import com.adu.demo.mapper.TagMapper;
import com.adu.demo.service.ITagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
                                            
@Service
public class TagService implements ITagService{
    @Autowired
    private TagMapper tagMapper;

    @Override
    public List<Tag> getList(Tag tag){
        return tagMapper.getList(tag);
    }
    @Override
    public Tag getById(Long id){
        return tagMapper.getById(id);
    }
    @Override
    public int save(Tag tag){
        return tagMapper.save(tag);
    }
    @Override
    public int deleteById(Long id){
        return tagMapper.deleteById(id);
    }
    @Override
    public int deleteByIds(Long[] ids){
        return  tagMapper.deleteByIds(ids);
    }
    @Override
    public int update(Tag tag){
        return tagMapper.update(tag);
    }
}